/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DBLag;

import ModelLag.LaneError;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import ModelLag.LaneErrorDescription;

/**
 *
 * @author JesperJensen
 */
public interface IFDbLaneError {
    
    public ArrayList<LaneError> findLaneError(String searchString, boolean retriveAssociation);
    
    public ArrayList<LaneError> findLaneErrorWithDate(GregorianCalendar date, boolean retriveAssociation);
    
    public ArrayList<LaneError> getAllLaneErrors();
    
    public int insertLaneError (LaneError laneErrorObj, GregorianCalendar date);
    
    public int deleteLaneError(int laneNo, String errorCode, GregorianCalendar date, String time);
    
    public int updateLaneError(String newDescription, GregorianCalendar date, String newTime, String newCprNo, int newLaneNo, String newErrorCode);
    
    public ArrayList<LaneError> getLaneErrorsMonth(int month, int year, boolean retriveAssociation);
    
    public ArrayList<LaneErrorDescription> getAllLaneErrorCodes();

}
